package com.czy.config;

import javax.jms.Topic;

import org.apache.activemq.command.ActiveMQTopic;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

//@Component
public class TopicConfig {
	@Value("${mytopic}")
	private String myTopic;

	@Bean
	public Topic topic() {
		return new ActiveMQTopic(myTopic);
	}
}
